package com.px.chapter_Dec_1.textt;

public class Single {
    private static Single numm;
    {
        System.out.println("++++++++");
    }
    static {
        System.out.println("================");
    }

    private Single(){

    }
    public  static Single getNewSingle(){
        if (numm==null){
            numm=new Single();
        }
        return numm;
    }
}
